
<form id="form_add">
<table>
	<tr>
		<td width="20%" align="right">负责人：</td>
		<td width="30%"><input type="text" name="emp" id="emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" size="12" title="{[$t.emp_|emp:'负责人']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" checked> 自己</td>
		<td width="20%" align="right">日期：</td>
		<td width="30%"><input type="text" name="date" id="date" value="{[$smarty.now|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
	<tr>
		<td align="right">设备：</td>
		<td colspan="3"><input type="text" name="machine" id="machine" size="16" value=""></td>
	</tr>
	<tr>
		<td align="right">客户：</td>
		<td colspan="3"><select name='customer' id='customer'>
			{[html_options options=$tecmold_option selected=-]}
		</select> <a href="javascript:void(0)"
			id="customer_x" onclick="Common.toggle(this, '#label_linkman_a')(this)" class="ui-icon ui-icon-circle-triangle-w"
			style="display: inline-table"></a></td>
	</tr>
	<tr id="label_linkman_a">
		<td></td>
		<td colspan="3">{[include file="contact/customer/_linkman.tpl"]}</td>
	</tr>
	
	<tr>
		<td align="right">机器故障：</td>
		<td colspan="3"><textarea rows="5" name="name" cols="55"></textarea></td>
	</tr>
	<tr>
		<td align="right">维修内容：</td>
		<td colspan="3"><textarea rows="5" name="maintain" cols="55"></textarea></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55"></textarea></td>
	</tr>	
</table>
</form>

<div style="margin-top:10px; width:710px;float:left;">
<div id="myGrid" style="width:100%;height:160px;"></div>
<table border="0">
	<tr>
		<td width="430" align="right">合计：<label id="label_amount"></label>（小写）</td>
		<td><div id="amount_t"></div></td>
	</tr>
</table>
</div>

<script type='text/javascript'>
var data = [];
var type_json = {[$type]};
</script>

<script type="text/javascript" src="js/car/maintain/grid.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/car/maintain/add.js?r={[$smarty.now]}"></script>
